#pragma once
#include "afxwin.h"
#include "MyDlg.h"
#include "DataDlg.h"

// CDlgSysStandandCfg dialog

class CDlgSysStandandCfg : public CMyDlg,  public IAddData
{
	DECLARE_DYNAMIC(CDlgSysStandandCfg)

public:
	CDlgSysStandandCfg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CDlgSysStandandCfg();

// Dialog Data
	enum { IDD = IDD_Sys_StandandCfg };
public:
	void OnApply();

public:
	void LoadStanardFileList();

private:
	void SetModified(BOOL bModified);
	void SetData(CString strData, CComboBox *pCombo);
	void SetData(emDataType DataType, CComboBox *pCombo);
	void AddData(emDataType DataType, CString& strData);
	void DeleteData(emDataType DataType, CString& strData);
	void ReadData(emDataType DataType, CComboBox *pCombo, CString strValue);
protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	CComboBox m_cbStandard;
	CComboBox m_cbTechLevel;
	CComboBox m_cbQuanifiedLevel;
	CComboBox m_cbAppraisalResult;
	afx_msg void OnCbnSelchangeComboStandard();
	afx_msg void OnCbnSelchangeComboTechlevel();
	afx_msg void OnCbnSelchangeComboQuanifiedLevel();
	afx_msg void OnCbnSelchangeComboAppraisalResult();
	afx_msg void OnEnChangeEditDescription();
	afx_msg void OnBnClickedButtonBrowseStandard();
	afx_msg void OnBnClickedButtonBrowseAppraisalResult();
	afx_msg void OnBnClickedButtonBrowseTechlevel();
	afx_msg void OnBnClickedButtonBrowseAppraisalQuanifiedLevel();
};
